<template>
  <div  class="back">
    <div class="like clear" v-for="item in likeList" :key="item.id">
      
      <div class="tone clear">
        <div class="left"><img :src="item.avatar" alt=""></div>
        <div class="right">
          <div class="tit">{{ item.name }} 赞了你的评论</div>
          <div class="time">{{ item.time }}</div>
        </div>
      </div>
      <div class="btwo clear">
        <div>
          <img :src="item.img" alt="">
        </div>
        <div class="content" >{{ item.content }} </div>

      </div>
     

    </div>

  </div>
</template>

<script>
  export default {
    props: {
    likeList: {
      type: Array,
      required: true,
    },
  },
  mounted(){
    console.log(this.likeList)
  }
  
  }
  
</script>

<style lang="scss" scoped>

.clear::before,.clear::after{
  content: '';
  display: block;
  height: 0;
  clear: both;
  overflow: hidden;
}
.like{
  position: relative;
  font-size: 14px;
  width: 100%;
  height: 154px;
  visibility: inherit;
  background-color: #fff;
 border-bottom: 1px solid #f2f2f2;


 
  padding: 14px;
  box-sizing: border-box;
  .tone{
    /* background-color: rgb(255, 126, 126); */
    margin-bottom: 15px;
   
    .left{
      float: left;
      margin-right: 15px;
      img{
      width: 32px;
      height: 32px;
      border-radius: 48px;
      }
    }
    .right{
        float: left; 
      
      }    
    
  }
  .btwo{
    background-color: #f9f9f9;
    color: #a599b2;
    float: left;
    
    
    img{
      height: 64px;
      width: 64px;
      float: left;
      margin-right: 10px;
    }
    .content{
      font-size: 12px;
      line-height: 24px;
      text-align: left;
      margin-top: 10px;

    }
  }


}
.time{
  font-size: 12px;
  color:#a599b2;
  margin-top: 3px;
}

</style>